<%@ page contentType="text/html;charset=UTF-8" language="java" %><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="managesystem.Student" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="controlsystem.Course" %>



		<%
			Student currStud = (Student) session.getAttribute("currStud");
			Collection<Course> studCourses = currStud.getCourses();
			
	    %>
	    
<div class=tekstBlok>
		    <h3>Welcome <%=currStud.getFname()%>, this is you user control panel.</h3>
		    <p>Courses selected :</p>
		    <ul>
		    	<% 
		    	for (Iterator<Course> iter = studCourses.iterator(); iter.hasNext();) {
		    		   Course c = (Course) iter.next();
		    		  %>
		    		  	<li><%=c.getName()%></li>
		    		  <%
		    		}
		    	%>
		    			
		    </ul>
		    
		</div>